import request from '@/utils/request'

export function listsLog(query) {
  return request({
    url: '/sLog/list',
    method: 'get',
    params: query
  })
}

export function createsLog(data) {
  return request({
    url: '/sLog/create',
    method: 'post',
    data
  })
}

export function readsLog(data) {
  return request({
    url: '/sLog/get/' + data.id,
    method: 'get'
  })
}

export function updatesLog(data) {
  return request({
    url: '/sLog/update',
    method: 'post',
    data
  })
}

export function deletesLog(data) {
  return request({
    url: '/sLog/delete/' + data.fno,
    method: 'delete'
  })
}
